package a.stategy;

/**
 * 打折收费子类
 */
public class CashRebate extends CashSuper {
    private Double moneyRebate;//打折率

    public CashRebate(String moneyRebate) {
        this.moneyRebate = Double.parseDouble(moneyRebate);
    }


    @Override
    Double acceptCash(Double money) {
        return moneyRebate * money;
    }


}
